#!/usr/bin/python

import manpa
from selenium.webdriver.common.by import By

mp = manpa.Manpa(isDebug=True)
with mp.open_selenium_client() as driver:
    driver.get_and_wait("https://www.baidu.com")
    for atag in driver.find_elements(By.XPATH, value="//a"):
        print(atag.get_attribute("href"))
